package skyinline.EX01.SungJuk;

public class EX01_SungJukVO {
	
	private String Student_Name;
	private int Student_Kor;
	private int Student_Eng;
	private int Student_Mat;
	private int Student_Tot;
	private float Student_Avg;
	private String Student_Grd;
	
	public EX01_SungJukVO() {
		Student_Name = null;
		Student_Kor = 0;
		Student_Eng = 0;
		Student_Mat = 0;
		Student_Tot = 0;
		Student_Avg = 0;
		Student_Grd = null;
	}
	public EX01_SungJukVO(String Student_Name, int Student_Kor, int Student_Eng, int Student_Mat) {
		this.Student_Name = Student_Name;
		this.Student_Kor = Student_Kor;
		this.Student_Eng = Student_Eng;
		this.Student_Mat = Student_Mat;
	}

	public void setStudent_Name(String student_Name) { Student_Name = student_Name; }
	public void setStudent_Kor(int student_Kor) { Student_Kor = student_Kor; }
	public void setStudent_Eng(int student_Eng) { Student_Eng = student_Eng; }
	public void setStudent_Mat(int student_Mat) { Student_Mat = student_Mat; }
	public void setStudent_Tot(int student_Tot) { Student_Tot = student_Tot; }
	public void setStudent_Avg(float student_Avg) { Student_Avg = student_Avg; }
	public void setStudent_Grd(String student_Grd) { Student_Grd = student_Grd; }
	public String getStudent_Name() { return Student_Name; }
	public int getStudent_Kor() { return Student_Kor; }
	public int getStudent_Eng() { return Student_Eng; }
	public int getStudent_Mat() { return Student_Mat; }
	public int getStudent_Tot() { return Student_Tot; }
	public float getStudent_Avg() { return Student_Avg; }
	public String getStudent_Grd() { return Student_Grd; }

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("\n★★★ 입력하신 정보는 다음과 같습니다. ★★★")
		.append("\n○ 학생 이름 : ").append(getStudent_Name()).append("\n○ 국어 점수 : ").append(getStudent_Kor())
		.append("\n○ 영어 점수 : ").append(getStudent_Eng()).append("\n○ 수학 점수 : ").append(getStudent_Mat())
		.append("\n○ 점수 합계 : ").append(getStudent_Tot()).append("\n○ 평균 점수 : ").append(getStudent_Avg())
		.append("\n○ 점수 등급 : ").append(getStudent_Grd());
		return sb.toString();
	}

}
